﻿<%@ Page Title="东太湖生态旅游度假区" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    Inherits="Wjtour.Web.Front.sceniclist" %>

<%@ Import Namespace="Wjtour.Domain" %>
<%@ Import Namespace="Wjtour.Common" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <script language="javascript">
        $(document).ready(function () {
            $("#ctr2 .JQ-slide").Slide({
                effect: "scroolX",
                speed: "normal",
                timer: 2000
            });
        });

    </script>

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="server">
    <div class="ipage scenicpage">
        <div class="path">您所在的位置：<a href="/">首页</a> &gt; 景区景点 &gt; 东太湖生态旅游度假区 </div>

        <div class="cmdimg">
            <div id="ctr2">
                <div class="JQ-slide">
                    <ul class="JQ-slide-content">
                        <%if (_slides != null && _slides.Count > 0)
                      {
                          foreach (var item in _slides)
                          {
                    %>
                    <li><a href="<%=item.url %>">
                        <img src="<%=item.img %>" alt="" /><span><%=item.title %></span></a></li>
                    <%}
                      } %>
                    </ul>
                    <ul class="JQ-slide-nav">
                        <%if (_slides != null && _slides.Count > 0)
                      {
                          string on = "";
                          for (var i = 0; i < _slides.Count; i++)
                          {
                              if (i == 0)
                              {
                                  on = "class=\"on\"";
                              }
                    %>
                    <li><%=(i+1) %></li>
                    <%}
                      } %>
                    </ul>
                </div>
            </div>

        </div>

        <!-- 虚拟游 -->
        <img src="css/images/virtualtravel.png" class="vt" />

        <!-- 浮动块 -->
        <div class="scenicleft">
            <!-- 需要加链接-->
            <a href="sceniclist.aspx">
                <img src="css/images/travelclassa.png" /></a>&nbsp;
			<a href="scenictownlist.aspx">
                <img src="css/images/travelclassb.png" /></a>&nbsp;
			<a href="scenicsilklist.aspx">
                <img src="css/images/travelclassc.png" /></a>

            <div class="sceniclist">
                <ul>
                    <%
                        if (data != null && data.Datas.Count > 0)
                        {
                            int i = 0;
                            foreach (Wjtour.Domain.scene item in data.Datas)
                            {
                                i++;
                                var i_tag = ((page - 1) * pagesize + i).ToString().PadLeft(2, '0');
                    %>
                    <li>
                        <h4><span><%=i_tag %></span><a href="scenicdetail.aspx?id=<%=item.id %>" target="_blank"><%=item.scenename %></a></h4>
                        <div>
                            <%if (!string.IsNullOrEmpty(item.img))
                              { %>
                            <a href="scenicdetail.aspx?id=<%=item.id %>" target="_blank"><img src="<%=item.img %>" /></a>
                            <%}
                              else
                              { %>
                            <a href="scenicdetail.aspx?id=<%=item.id %>" target="_blank"><img src="css/images/tmp13.png" /></a>
                            <%} %>
                            <p>
                                <%=Utility.CutString(Utility.StripHtml(item.introduce),96,true) %>[<a href="scenicdetail.aspx?id=<%=item.id %>" target="_blank">详情</a>]<br />
                                <br />
                                景点地址：<%=item.address %>
                            </p>
                        </div>
                    </li>
                    <%
                            }
                        }%>
                </ul>


                <!-- 分页 -->
                <%=PagnationHtml %>
            </div>
        </div>
        <!-- 侧面-->
        <div class="scenicright">
            <img src="css/images/linecommend.png" />
            <div class="title"></div>
            <ul class="arlist">
                <%if (recommendLines != null && recommendLines.Count > 0)
                  {
                      for (var i = 0; i < recommendLines.Count; i++)
                      {
                          var line = recommendLines[i];
                %>

                <li><span></span><a href="traveldetail.aspx?id=<%=line.id %>" target="_blank"><%=line.title %></a></li>
                <%}
                  }%>
            </ul>

            <img src="css/images/guide.png" class="guide" />

            <h5>
                <img src="css/images/travelguide.png" />
                <span><a href="travelguide.aspx">MORE</a></span>
            </h5>
            <div class="title"></div>
            <%if (trafficGuides != null && trafficGuides.Count > 0)
              {
                  var first = trafficGuides.First();
            %>
            <div class="best">
                <%if (!string.IsNullOrEmpty(first.img))
                  { %>
                <img src="<%=first.img %>" />
                <%}
                  else
                  { %>
                <img src="css/images/tmp13.png" />
                <%} %>
                <div>
                    <h4><a href="traveldetail.aspx?id=<%=first.id %>" target="_blank"><%=first.title %></a></h4>
                    <span>作者：<%=first.author %></span>
                    <span class="goodnum">赞：<%=first.zan %></span>
                    <span class="readnum">浏览：<%=first.hits %></span>
                </div>
            </div>
            <ul class="arlist">
                <%for (var i = 1; i < trafficGuides.Count; i++)
                  {
                      var tg = trafficGuides[i];
                %>
                <li><span></span><a href="travelguideview.aspx?id=<%=tg.id %>" target="_blank"><%=tg.title %></a></li>
                <%} %>
            </ul>
            <%} %>
        </div>
        <div class="clear"></div>
    </div>
</asp:Content>
